package com.lqk.fnandroid.navigation

import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.navigation.fragment.findNavController
import com.lqk.fnandroid.R
import com.lqk.fnandroid.databinding.FragmentLoginPasswordBinding
import com.lqk.fnandroid.databinding.FragmentLoginVerifyBinding

/**
 * 密码登录
 */
class LoginPasswordFragment : Fragment() {

    private lateinit var binding: FragmentLoginPasswordBinding

    override fun onCreateView(
        inflater: LayoutInflater, container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {
        binding = FragmentLoginPasswordBinding.inflate(layoutInflater)
        return binding.root
//        return inflater.inflate(R.layout.fragment_login_password, container, false)
    }

    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)
        binding.tvBackMain.setOnClickListener {
            findNavController().popBackStack()
        }
    }
}